package cn.lijian.goods.admin.admin.service;

import java.sql.SQLException;

import cn.lijian.goods.admin.admin.dao.AdminDao;
import cn.lijian.goods.admin.admin.domain.Admin;

public class AdminService {
	private AdminDao adminDao=new AdminDao();
	/**
	 * 登录
	 * @param admin
	 * @return
	 * @throws SQLException
	 * @author lijian
	 */
	public Admin login(Admin admin) throws SQLException{
		return adminDao.find(admin.getAdminname(), admin.getAdminpwd());
	}
}
